/*************************************************************************
	> File Name: test8.cc
	> Author: H.M. Lau
	> Mail: hm.lau@outlook.com
	> Created Time: 2023/09/02 22:48
 ************************************************************************/

#include <iostream>
#include <unistd.h>
#include <string.h>

int main(int argc, char *argv[])
{
    printf("hello printf 1\n");
    fprintf(stdout, "hello fprintf 1\n");
    perror("hello perror 2\n");
    const char *s1 = "hello write 1\n";
    write(1, s1, strlen(s1));
    const char *s2 = "hello write 2\n";
    write(2, s2, strlen(s2));
    std::cout << "hello cout 1" << std::endl;
    std::cerr << "hello cerr 2" << std::endl;
    return 0;
}
